<%@ page import="ro.gateway.aida.usr.*,
                 ro.gateway.aida.srv.EditorServlet,
                 java.util.Properties,
                 java.util.Locale,
                 ro.xblue.translator.*,
                 ro.gateway.aida.obj.db.AIDALocationDB,
                 ro.gateway.aida.obj.db.LanguageDB,
                 ro.gateway.aida.db.PersistenceToken,
                 ro.gateway.aida.db.PersistenceManager,
                 ro.gateway.aida.utils.Utils,
                 ro.gateway.aida.obj.Country"  %>
<%@ page import = "ro.gateway.aida.servlet.*,
                   java.util.Hashtable,
                   ro.xblue.translator.LanguageBean,
                   ro.xblue.translator.TranslatorUtils"%>
<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %>
<%
    Object screen = request.getAttribute(EditActivityServlet.PNAME_SCREEN);
    String key = (String) request.getAttribute(EditActivityServlet.PNAME_KEY);
    if ((request.getAttribute(EditActivityServlet.SIGNATURE) == null) || (key == null)) return;

    String[] errors = (String[]) request.getAttribute(EditActivityServlet.PNAME_ERRORS);
    if (errors == null) errors = new String[0];

    Hashtable ed_ctx = (Hashtable) request.getAttribute(EditActivityServlet.PNAME_R_CTX);
    LanguageBean lang_bean = TranslatorUtils.getCurrentLanguage(request, application);

     request.setAttribute("pview_hideclose", "k");
%>
<trans:initPage module="prj_pages" />
<html>
<head>
<title>Romania Development Gateway - AIDA (under construction)</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
	<link rel="stylesheet" href="alf.css" type="text/css">
</head>

<body>
<jsp:include page="header.jsp" /><br>
<table width="98%" align="center" cellpadding="5" cellspacing="1" background=images/pixelbgtable.gif class="text_search">
  <% if (EditActivityServlet.SCREEN_ERROR.equals(screen)) { %>
  <tr bgcolor="#FFFFFF">
    <td class="text_searchBold"><trans:showPageMessage label="p7.err.title" /></td>
  </tr>
  <% if (errors.length > 0) { %>
  <% for (int i = 0; i < errors.length; i++) { %>
  <tr bgcolor="#FFFFFF">
    <td colspan="2"><%=errors[i]%></td>
  </tr>
  <% } %>
  <% } else { %>
  <tr bgcolor="#FFFFFF">
    <td colspan="2" height="2"><trans:showPageMessage label="p7.err.unspec" /></td>
  </tr>
  <% } %>
  <tr bgcolor="#FFFFFF">
    <td colspan="2"><a href="<%=request.getContextPath()%>/"><trans:showPageMessage label="p7.login" /></a> | <a href="editActivity"><trans:showPageMessage label="p7.newproject" /></a></td>
  </tr>
  <% } else if (EditActivityServlet.SCREEN_CONFIRM.equals(screen)) { %>
  <tr bgcolor="#FFFFFF">
    <td align="center" colspan="2" class="text_bold" bgcolor=#0099cc>
     <div class=textalb><trans:showPageMessage label="p7.confpage" /></div></td>
	 <tr><td align="center" colspan="2" class="text_bold" bgcolor=ffffff>
     <jsp:include page="activity/_project_viewer.jsp" />
     <form name="theform" method="post" action="editActivity">
	 <input type="hidden" name="action" value="" />
     <input type="hidden" name="<%=EditActivityServlet.PNAME_KEY%>" value="<%=key%>" /></tr>
     <tr bgcolor="#FFFFFF">
      <td colspan="2" align="center">
         <input type="button" name="un_nume"
          value="<trans:showPageMessage label="p7.save" hide_link="true" />"
          onClick="javascript:document.theform.action.value='<%=EditActivityServlet.ACTION_SAVE%>';document.theform.submit();"
          class="butonsave"/>
		  <input type="button" name="un_nume"
          value="<trans:showPageMessage label="p7.backtoedit" hide_link="true" />"
          onClick="javascript:location='editActivity?key=<%=key%>&page=1';" class="butonsave"/>
      </td>
     </tr>
     </form>
    </td>
  </tr>
<% } %>
</table><trans:showPageMessage label="translator.showhiddentags"/>
<jsp:include page="footer.jsp" />
</body>

</html>
